package com.kevin.learn.状态模式.审批业务;

/**
 * 状态模式测试类
 */
public class StateModeTest {
    public static void main(String[] args) {
        Context context = new Context();
        context.setState(new SupervisorState());
        System.out.println(context.getState());
        
        context.request();
        System.out.println(context.getState());
        
        context.request();
        System.out.println(context.getState());
        
        context.request();
        System.out.println(context.getState());
    }
}